home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Commodore Disk User Volume 4 #11
/
Commodore_Disk_User_Vol.4_11_1991_-.d64
/
techno challenge
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-10-26
|
3KB
|
95 lines
10 poke 53280,5: poke 53281,11
20 print"[147][155] techno":print" info"
30 print,"[145][145][145][145][158] [172][187] [162][172][162][162][187][162] [162][162] [172][162][187][172][187] [162][172][162][162][187]",,
40 print" [161][146][161] [161][146][161] [146] [161][146][161][188][190] [146] [161] [190] [161][146][161]",,
50 print" [161][188][188] [161][172][162][146] [146] [161][146][161] [146] [161][146][161][190] [161][172][162][146]",
60 print" [161][172][146][188] [161][188][146][162][187] [146][162][162][188][188][190][146][190][187][146][162][172][161][146][161] [161][188][146][162][187]"
70 print" jason finch proudly presents the"
80 print" second techno-info challenge!"
90 print#"[153] for details of your task, please"
100 print" read the magazine instructions very[157][157][157][157][163][163][163][163]"
110 print" carefully so that you can be sure"
120 print" that your entry will be accepted"
130 print" use a joystick in port two and press"
140 print" the fire button to begin, perhaps!"
150 a=127-peek(56321)
160 if (a and 16)<>1 then 150
170 jw=10:sc=0:l=3
180 poke 53280,0: poke 53281,0: print "[147]";
190 y=0: a$="techno info challenge 3: debug it! ": gosub 590
200 y=1: a$="by jason finch - score: lives: ": gosub 590
210 for x=0 to 39
220 poke 55296+120+x,10: poke 1024+120+x,160
230 poke 55296+960+x,10: poke 1004+960+x,160
240 next
250 for y=2 to 23
260 poke 55296+y*40,10: poke 1024+y*40,160
270 poke 55296+y*40+39,10: poke 1024+y*40+39,160
280 next
290 for n=1 to jw
300 gosub 640
310 gosub 700
320 gosub 700
330 next
340 if jw<15 then for n=1 to 30-(jw/2): gosub 640: next
350 x=20:p=1444:f=0
360 bx=20:by=10:dx=1:dy=1: gosub 760
370 if peek(1024+by*40+bx)<>32 then bx=bx+1: goto 370
380 print""tab(x)" ### "
390 print""tab(x)" ### "
400 poke p+54272,1: poke p,81
410 a=127-peek(56320)
420 if (a and 4)=4 then x=x+1
430 if (a and 8)=8 then x=x+1
440 if x=0 then x=1
450 if x=35 then x=34
460 f=1-f: if f=1 then 380
470 poke p,32
480 if by=5 and peek(p-40)<>32 then dy=-dy: sc=sc+3
490 if by=22 and peek(p+40)<>32 then dy=-dy: sc=sc+3
500 if bx=1 or bx=38 then dx=-dx
510 if by=4 or by=23 then 810
520 bx=bx+dx
530 by=by+dx
540 p=1024+by*40+bx
550 if peek(p)=160 then dy=-dy: sc=sc+1: gosub 760: goto 530
560 if peek(p)<>90 then 380
570 pokee 1024+by*40+bx,32
580 sc=sc+10:jw=jw-1:gosub760:goto380
590 print left$("",y+1);
600 for x=40 to 1 step -2
610 print mid$(" [160]"+a$,x,39)
620 print "[145]";: next
630 return
640 x=int(36*rnd(1))+3
650 y=int(18*rnd(1))+1
660 p=1024+y*40+x
670 gosub 770: if r=1 then 640
680 poke p+54272,14: poke p,102
690 return
700 x=int(36*rnd(1))+3
710 y=int(18*rnd(1))+5
720 p=1024+y*40+x
730 gosub 770: if r=1 then 700
740 poke p+54272,13: poke p,90
750 return
760 print"";tab(24);l;tab(37);sc:return
770 r=0: for x1=-1 to 1: for y1=-1 to 1
780 if peek(p+y1*40+x1)<>32 then r=1
790 next x1,y1
800 return
810 print""tab(x)" "
820 print""tab(x)" "
830 print"you're supposed to hit the ball, mate!"
840 if l=1 then 890
850 print"get ready to continue - press fire"
860 a=127-peek(56320)
870 if (a and 16)<>16 then 860
880 k=l-1: goto 180
890 print"your game's up!!! - press fire"
900 print"incidentally, i don't think much"
910 print"to your rather low score"
920 a=127-peek(56320)
930 if (a and 16)<>16 then 930
940 run